package com.github.jiangxch.rpc.serialization;

import java.io.IOException;

/**
 * @author: jiangxch
 * @date: 2021/2/21 上午5:05
 */
public interface Serializer {
    byte[] serialize(Object object) throws IOException;
    
    Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException;
}
